<table><tr><td><img src="<?php echo $carte->getPoza() ?>" width="120" height="150"></td></td>
<td>
<table>
  <tbody>
  	<tr><th height='40'>Descriere</th></tr>
    <tr>
      <th>Titlu:</th>
      <td><?php echo $carte->getTitlu() ?></td>
    </tr>
	<tr>
	  <th>Autori:</th>
	  <td><b><?php echo $carte->getAutori(); ?></b></td>
	</tr>
    <tr>
      <th>Autori:</th>
      <td><?php echo $carte->getAutori(); ?></td>
    </tr>
    <tr>
      <th>Editura:</th>
      <td><?php echo $carte->getEditura() . " " .$carte->getAnAparietie() ?></td>
    </tr>
    <tr>
      <th>Pret:</th>
      <td><?php echo $carte->getPret() ?></td>
    </tr>
    <tr>
      <th>Editie:</th>
      <td><?php echo $carte->getEditie() ?></td>
    </tr>
    <tr>
      <th>Volum:</th>
      <td><?php echo $carte->getVolum() ?></td>
    </tr>
    <tr>
      <th>Stoc:</th>
      <td><?php if($carte->getStoc()>0) echo "In stoc"; else echo 'Stoc epuizat';?></td>
    </tr>
    <?php if($carte->getStoc()>0) :?>
    <tr><td>Adauga in cos:</td>
    	<td>
    	<a href="<?php 
    			if($isLogged == true)
    				 echo url_for('carte/addInCos?id_carte='.$carte->getIdCarte());
    			else echo url_for('user/login'); ?>">
    			<img src ="/images/cos.png" width='40' height='40'/>
    	</a>
    </td></tr>
    <?php endif; ?>
  </tbody>
</table>

</td></tr></table>
<hr />


